CGI Environment Variables

With annotations for the Windows/DOS environment

In order to pass data about the information request from the server to the script, the server uses command line arguments as well as environment variables. These environment variables are set when the server executes the gateway program.

Windows/DOS Note: Any physical paths must be in in the Windows/DOS syntax, with "\" separators instead of the Unix "/". Full paths must include drive letters and/or UNC network node name components as needed to resolve any ambiguity. Under no circumstances must scripts rely on any pre-existing or implied "working directory".


Specification

The following environment variables are not request-specific and are set for all requests:


The following environment variables are specific to the request being fulfilled by the gateway program:


Examples

Examples of the setting of environment variables are really much better demonstrated than explained.


Return to the interface specification


Robert B. Denny <rdenny@netcom.com>